﻿/// <reference path="view-models.js" />
/// <reference path="templatesLoader.js" />
/// <reference path="../libs/_references.js" />

window.viewsFactory = (function () {

    function getLoginView() {
        return templateLoader.loadTemplate("login-form");
    }

    function getRegisterView() {
        return templateLoader.loadTemplate("register-form");
    }

    function getHomeView() {
        return templateLoader.loadTemplate("home");
    }

    function getTodosView() {
        return templateLoader.loadTemplate("TODOs");
    }

    function getSelectedTodoView() {
        return templateLoader.loadTemplate("TODO-list");
    }

    function getCreateToDoView() {
        return templateLoader.loadTemplate("create-todo");
    }

    function getAppointmentsView() {
        return templateLoader.loadTemplate("appointments");
    }
    
    function createAppointmentView() {
        return templateLoader.loadTemplate("create-appointment");
    }
    
    function createTodoListView() {
        return templateLoader.loadTemplate("create-todo");
    }
    
    function createSingleTodoView() {
        return templateLoader.loadTemplate("create-single-todo");
    }

    return {
        getLoginView: getLoginView,
        getRegisterView: getRegisterView,
        getTodosView: getTodosView,
        getSelectedTodoView: getSelectedTodoView,
        getHomeView: getHomeView,
        getCreateToDoView: getCreateToDoView,
        getAppointmentsView: getAppointmentsView,
        createAppointmentView: createAppointmentView,
        createTodoListView: createTodoListView,
        createSingleTodoView: createSingleTodoView
    };
}());